home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 8213 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.9 KB

  1. Path: newsfeed.direct.ca!usenet
  2. From: qjackson@direct.ca
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: No struct in C++!!?
  5. Date: Thu, 15 Feb 1996 19:40:44 GMT
  6. Organization: Parsepolis Software
  7. Message-ID: <4g027j$7hs@aphex.direct.ca>
  8. References: <1996Feb14.151620.5532@queens-belfast.ac.uk> <3121B124.7A28@hooked.net>
  9. Reply-To: qjackson@direct.ca
  10. NNTP-Posting-Host: 204.174.249.25
  11. X-Newsreader: Forte Free Agent 1.0.82
  12.  
  13. Gunnar Proppe <nervecel@hooked.net> wrote to Georg Woste:
  14.  
  15. >I've just been reading _The C++ Programming Language_ by Bjarne 
  16. >Stroustrup, the creator of C++, and he addresses this question.  While 
  17. >he does say that (and I'm heavily paraphrasing here) the object 
  18. >paradigm is usually much easier to follow (once you get it) and to 
  19. >maintain, there are cases where it just becomes a pedantic exercise to 
  20. >try to fit a problem into a set of objects.  When you need a struct, 
  21. >use a struct; don't try to fit a square peg into a round hole.
  22.  
  23. In a recent email exchange with Stroustrup, he agreed that for certain
  24. systems, forcing everything to be an object, is, as I put it to him,
  25. "over-engineering."
  26.  
  27. This in the context of lexical analysis, which is highly
  28. character-based.
  29.  
  30. I am currently porting a non-OO pattern matching langauge interpreter
  31. to C++ -- and am about 40% done the port.  I have been able to
  32. ecncapsulate some of the system into classes, but so far, most of the
  33. objects are simply abstractions of the states of a language
  34. interpreter -- preprocessing, lexical analysis, syntax checking, et
  35. cetera.  Some of the likely candidates for class encapsulation have
  36. remained procedural within the casing of the different state-classes
  37. for conceptual as well as performance reasons.
  38.  
  39. Cheers,
  40.  
  41.  
  42.  
  43. --                           
  44.                            | 
  45.     Parsepolis Software    |   Quinn Tyler Jackson
  46.         "ParseCity"        |     (aka 'Jamshid')
  47. >--------------------------|   qjackson@direct.ca
  48.                            |---------------------->
  49.  
  50.